Skip to content

Conversation

@mjpieters
Copy link
Contributor

Pytest replaced the private name _pytest._code.code._TracebackStyle with _pytest._code.code.TracebackStyle in 8.3.0, a change that can't easily be accounted for when running static type checks.

Replace the imported type with one that's hard-coded locally.

Fixes #158

Pytest replaced the private name `_pytest._code.code._TracebackStyle`
with `_pytest._code.code.TracebackStyle` in 8.3.0, a change that can't
easily be accounted for when running static type checks.

Replace the imported type with one that's hard-coded locally.
Copy link
Member

@sobolevn sobolevn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@sobolevn sobolevn merged commit 2a45fec into typeddjango:master Dec 21, 2024
21 checks passed
@mjpieters mjpieters deleted the mj/fix-mypy-failure branch December 21, 2024 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

static typecheck error in pytest-mypy-plugins pipeline: pytest 8.3.0 renamed _TracebackStyle to TracebackStyle

2 participants